<!-- app.vue -->
<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>

<script setup lang="ts">
import { useAuthStore } from '~/stores/auth'

// 在客户端初始化 store
onMounted(() => {
  const authStore = useAuthStore()
  authStore.initializeFromStorage()
  console.log('Store 初始化完成')
})
</script>